package com.biaobiaoqi.scoreanalysis.hibernate.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
@Entity
 public class ScoreEntity extends BaseBean{
	@ManyToOne
	@JoinColumn(nullable=false)
	private Student student;
	@ManyToOne
	@JoinColumn(nullable=false)
	private Examination examination;
	@ManyToOne
	@JoinColumn(nullable=false)
	private Course course;
	@Column(nullable=false)
	private Float score;
	public Student getStudent() {
		return student;
	}
	public void setStudent(Student student) {
		this.student = student;
	}
	public Examination getExamination() {
		return examination;
	}
	public void setExamination(Examination examination) {
		this.examination = examination;
	}
	public Course getCourse() {
		return course;
	}
	public void setCourse(Course course) {
		this.course = course;
	}
	public Float getScore() {
		return score;
	}
	public void setScore(Float score) {
		this.score = score;
	}
}

